package com.example.mybatisdemoplus.Controller;


import com.example.mybatisdemoplus.Entity.Result;
import com.example.mybatisdemoplus.Entity.User;
import com.example.mybatisdemoplus.Mapper.UserMapper;
import com.example.mybatisdemoplus.Service.UserService;
import org.junit.Assert;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class UserController {
    @Resource
    private UserService userService;

    @GetMapping("/findAll")
    public Result findAllUser(){
        return userService.getAll();

    }

}
